package service.manager.impl;

import dao.manager.AnnouncementDao;
import dao.manager.impl.AnnouncementDaoImpl;
import entity.Announcement;
import service.manager.AnnouncementService;

import java.util.List;

/**
 * AnnouncementServiceImpl
 *
 * @author 谭文斌
 * @since 2023/8/31
 */
public class AnnouncementServiceImpl implements AnnouncementService {
    AnnouncementDao announcementDao=new AnnouncementDaoImpl();
    @Override
    public int add(Announcement announcement) {
        return announcementDao.add(announcement);
    }

    @Override
    public List<Announcement> getList() {
        return announcementDao.getList();
    }
    @Override
    public int del(int id) {
        return announcementDao.del(id);
    }
    @Override
    public int upd(Announcement announcement){
        return announcementDao.upd(announcement);
    }

    @Override
    public Announcement getId(int id) {
        return announcementDao.getId(id);
    }

}
